package com.sky.mapper;

import com.sky.entity.OrderDetail;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * TODO
 *
 * @Author mr.zhao
 * @Date 2025/5/27 10:45
 */
@Mapper
public interface OrderDetailMapper {

	/**
	 * 批量新增订单详细数据
	 * @param orderDetailList
	 */
	void insertBatch(List<OrderDetail> orderDetails);

	/**
	 * 根据orderId查询订单详细信息
	 * @param orderId
	 * @return
	 */
	List<OrderDetail> getByOrderId(Long orderId);
}
